package com.atguigu.repservice.service.client;

import com.atguigu.commonutils.ordervo.UcenterMemberOrder;
import com.atguigu.commonutils.ordervo.UserOrderVo;
import com.atguigu.commonutils.userVo.CommentUserVo;
import com.atguigu.repservice.service.client.impl.RepUserClientImpl;
import io.swagger.annotations.ApiOperation;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name = "service-user", fallback = RepUserClientImpl.class)
public interface RepUserClient {

    // 根据用id获取用户信息【service-order模块需要】")
    ///userservice/user/getUserInfoById/{id}
    @GetMapping("/userservice/user/getUserInfoById/{id}")
    public UserOrderVo getUserInfoOrder(@PathVariable("id") String id);


    //8.根据id获取用户信息
    @ApiOperation("根据id获取用户信息手机号码")
    @GetMapping("/userservice/user/getRepUserMobileById/{id}")
    public String getRepUserMobileById(@PathVariable("id") String id);

    //通过id获取用户信息
    @ApiOperation("通过id获取用户信息")
    @GetMapping("/userservice/user/getCommentUserById/{userId}")
    public CommentUserVo getCommentUserById(@PathVariable("userId") String userId);
}
